<?php
class CmsPhotoModel extends ModelBase
{
    protected static $instance;

    public static function GetInstance()
    {
        return self::$instance ? self::$instance : self::$instance = new CmsPhotoModel();
    }

    protected function LoadFields()
    {
        $this->AddField('id', 'varchar', false, true);
    }

    public function Find($condition = null, $fields = null, $orderby = null, $limit = null, &$page = null, &$count = null, $groupby = null)
    {
        return Photo::GetInstance()->GetPhotos($limit, $page, $count);
    }

    public function FindById($id)
    {
        return null;
    }
}
?>
